<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><%= title %></title>
    <LINK href="favicon.ico" type="image/x-icon" rel=icon>
    <link type="text/css" href="/css/base.css" rel="stylesheet" />
    <link type="text/css" href="/css/index.css" rel="stylesheet" />
    <link type="text/css" href="/css/alert/css/alert.css" rel="stylesheet" />
    <link type="text/css" href="/editor/plugins/code/prettify.css" rel="stylesheet" />
</head>
<body>
<div class="loading">

    <div class="firefly">
        <div class="head"></div>
        <div class="wing left"></div>
        <div class="wing right"></div>
        <div class="glow"></div>
        <div class="shadow"></div>
    </div>
</div>
<div id="all-bg"></div><!--背景图片-->
<div class="content">
    <!--左侧导航-->
    <% include nav.ejs %>
    <div class="wrap-content">
        <div class="article-wrap">
            <%articlelist.forEach(function(data){%>
                <header class="article-header">
                    <h1 class="article-title"><%=data.title%></h1>
                    <div class="meta">
                        <span>发布时间：<%=(new Date(data.date).getFullYear()+"-"+(new Date(data.date).getMonth()+1)+"-"+new Date(data.date).getDate())%></span><span>栏目分类：<a href="/list/<%=data.columnid%>"><%=data.columnname%></a></span><span>浏览次数：<%=data.look%></span><span class="margin-0">文章评论：10</span>

                    </div>
                </header>


                <article class="article-content">
                    <%-data.content%>
                </article>



            <%})%>
            <div class="user-talk-list">

            </div>
            <div class="user-talk-enter" data-articleid="<%=articleid%>">
                <h3>我来说两句:</h3>
                <div>
                    <p>评论(至少4个字符)&nbsp;<span class="required">*</span></p>
                    <textarea rows="10" name="talkcontent" placeholder="写下你的评论，一起探讨起来！(*评论必须要先注册，登录才可以评论！)" id="talk-content"></textarea>
                    <p class="code-img"><img id="code-img" title="点击刷新验证码"  src="/refresh?v=11" width="70px" height="30px" /><input type="text" name="code-value" value="" placeholder="请输入4位验证码"><input type="button" value="提交" id="user-talk-button" ></p>
                </div>
            </div>

        </div>

    </div><!--中间内容列表-->

    <!--右侧用户列表-->
     <% include user.ejs %>
</div><!--内容板块-->


</body>

<script data-main="/js/mian-content"  src="/js/require.js"></script>

</html>
